package cn.tedu.aiumall.user.webapi.mapper;


import cn.tedu.aiumall.common.pojo.user.entity.User;
import cn.tedu.aiumall.common.pojo.user.vo.UserLoginInfoVO;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    int insert(User user);
    int countByUsername(String username);
    int countByPhone(String phone);
    int countByEmail(String email);
    UserLoginInfoVO getStandardById(Long id);
    UserLoginInfoVO getLoginInfoByUsername(String username);
    UserLoginInfoVO getStandardByUsernameOrPhoneOrEmail(String usernameOrPhoneOrEmail);

}
